<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>
<div id="content">
    <div class="span10">
        <form:form modelAttribute="rating" method="POST" cssClass="form-horizontal">
            <div class="control-group"><label class="control-label">RatingAgencyID:&nbsp</label>
                <form:select path="RatingAgencyID">
                    <div class="control-group"><form:options items="${ratingagencies}" itemLabel="RatingAgencyName" itemValue="RatingAgencyID"/> </div>
                </form:select> </div>

            <div class="control-group"><label class="control-label">RatingValue:&nbsp</label><form:input path="ratingValue"/><form:errors path="ratingValue" cssClass="error" /></div>
            <%--<form:errors path="ratingValue" cssClass="error" />--%>
            <div class="control-group"><label class="control-label">CountrySpecific:&nbsp</label><form:input path="countrySpecific"/><form:errors path="countrySpecific" cssClass="error" />
            <div class="span10"><br>Hint: '0' for FALSE, '1' for TRUE</div></div>
            <div class="control-group"><label class="control-label">CountryID:&nbsp</label>
                <form:select path="CountryID">
                <div class="control-group"><form:options items="${countries}" itemLabel="CName" itemValue="ID"/> </div>
            </form:select> </div>
            <div class="control-group"><label class="control-label">UpdateTime:&nbsp</label><form:input disabled="true" path="updateTime"/></div>
            <div class="control-group"><input type="reset" value="Reset"/>&nbsp<input type="submit" value="Save"/></div>

        </form:form>
    </div>
</div>
</body>
</html>